
package com.gegao.practise.simple;

import android.os.Bundle;
import android.preference.Preference;
import android.preference.PreferenceActivity;
import android.preference.PreferenceCategory;
import android.preference.Preference.OnPreferenceClickListener;

import com.gegao.practise.R;
import com.juzi.main.AppConnect;

public class MyBrowserPreferencesPage extends PreferenceActivity implements
        Preference.OnPreferenceChangeListener {

    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        addPreferencesFromResource(R.xml.browser_preferences);

        Preference e = findPreference("gfan_more_app");
        e.setOnPreferenceClickListener(new OnPreferenceClickListener() {

            @Override
            public boolean onPreferenceClick(Preference preference) {
                AppConnect.getInstance(getApplicationContext()).showOffers(
                        getApplicationContext());
                return true;
            }
        });
    }

    @Override
    public boolean onPreferenceChange(Preference preference, Object newValue) {
        return false;
    }

}
